// pages/images/images.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    imagePath: ''
  },
  handleChooseImage() {
    wx.chooseImage({
      count: 9,
      sizeType: ['original','compressed'],
      sourceType: ['album','camera'],
      success: (result)=>{
        console.log(result);
        this.setData({
          imagePath: result.tempFilePaths[0]
        })
      },
      fail: ()=>{},
      complete: ()=>{}
    });
  },
})